import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)

// 导入MintUi
import 'mint-ui/lib/style.css'

// 导入mui的样式表
import '../lib/mui/css/mui.min.css'
import '../lib/mui/css/icons-extra.css'

// 导入bs的样式表
import '../lib/bs/css/bootstrap.min.css'

// 按需导入，把组件组册为全局组件
import { Swipe, SwipeItem, Button } from 'mint-ui';

Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);

// 按需导入button
Vue.component(Button.name, Button);


// 导入主体组件
import App from './components/App.vue'

// 导入自定义路由模块
import router from './router.js'

new Vue({
    el:'#myApp',
    data:{},
    render:c=>c(App),
    router
})

